const request = require('../utils/request.js')
// method, url, data
export const types = () => {
  return request.request('GET','/cake/cakeClassification',null)
}

export const cakeinfos = (page, classId) => {
  return request.request('GET',`/cake/cakeinfos`,{page, classId})
}

export const cakeinfo = (cakeId) => {
  return request.request('GET',`/cake/cakeinfo`,{cakeId})
}

export const recommond = (page) => {
  return request.request('GET',`/cake/recommond`,{page})
}
export const addCar = (cakeId) => {
  return request.request('POST',`/cake/carts`,{cakeId})
}